﻿using System;
namespace OnlineManagement.Model
{
	/// <summary>
	/// Sow:实体类(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public partial class Sow
	{
		public Sow()
		{}
		#region Model
		private Guid _sowid;
		private int _hoggeryid;
		private Guid _pigpenid;
		private string _bitid;
		private Guid _typeid;
		private int? _sourceid;
		private DateTime? _brithdary;
		private decimal? _wight;
		private DateTime? _datejoinfarm;
		private DateTime? _weedout;
		private string _inbreedingdegree;
		private bool _isinfarm= true;
		private int? _nippleno=0;
		private int? _hybridizationcount=0;
		private int? _pregnantcount=0;
		private int? _fanqingcount=0;
		private int? _nonpregnantcount=0;
		private int? _abortioncount=0;
		private int? _propagatecount=0;
		private Guid _propagatestateid;
		private string _comment;
		/// <summary>
		/// 
		/// </summary>
		public Guid SowID
		{
			set{ _sowid=value;}
			get{return _sowid;}
		}
		/// <summary>
		/// 
		/// </summary>
		public int HoggeryID
		{
			set{ _hoggeryid=value;}
			get{return _hoggeryid;}
		}
		/// <summary>
        /// 猪舍编号
		/// </summary>
		public Guid PigPenID
		{
			set{ _pigpenid=value;}
			get{return _pigpenid;}
		}
        /// <summary>
        ///猪舍名称 addtional by myself
        /// </summary>
        public string PigPenName { get; set; }
		/// <summary>
        /// 耳号
		/// </summary>
		public string BitID
		{
			set{ _bitid=value;}
			get{return _bitid;}
		}
		/// <summary>
		/// 
		/// </summary>
		public Guid TypeID
		{
			set{ _typeid=value;}
			get{return _typeid;}
		}
		/// <summary>
        /// 来源编号
		/// </summary>
		public int? SourceID
		{
			set{ _sourceid=value;}
			get{return _sourceid;}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? Brithdary
		{
			set{ _brithdary=value;}
			get{return _brithdary;}
		}
		/// <summary>
		/// 
		/// </summary>
		public decimal? Wight
		{
			set{ _wight=value;}
			get{return _wight;}
		}
		/// <summary>
        /// 进厂日期
		/// </summary>
		public DateTime? DateJoinFarm
		{
			set{ _datejoinfarm=value;}
			get{return _datejoinfarm;}
		}
		/// <summary>
        /// 淘汰日期
		/// </summary>
		public DateTime? WeedOut
		{
			set{ _weedout=value;}
			get{return _weedout;}
		}
		/// <summary>
        /// 近交程度,高，中，底
		/// </summary>
		public string InbreedingDegree
		{
			set{ _inbreedingdegree=value;}
			get{return _inbreedingdegree;}
		}
		/// <summary>
        /// 1表示在场，0表示离场
		/// </summary>
		public bool IsInFarm
		{
			set{ _isinfarm=value;}
			get{return _isinfarm;}
		}
		/// <summary>
        /// 乳头个数
		/// </summary>
		public int? NippleNo
		{
			set{ _nippleno=value;}
			get{return _nippleno;}
		}
		/// <summary>
        /// 配种次数
		/// </summary>
		public int? HybridizationCount
		{
			set{ _hybridizationcount=value;}
			get{return _hybridizationcount;}
		}
		/// <summary>
        /// 受胎次数
		/// </summary>
		public int? PregnantCount
		{
			set{ _pregnantcount=value;}
			get{return _pregnantcount;}
		}
		/// <summary>
        /// 反情次数
		/// </summary>
		public int? FanQingCount
		{
			set{ _fanqingcount=value;}
			get{return _fanqingcount;}
		}
		/// <summary>
        /// 空怀次数
		/// </summary>
		public int? NonpregnantCount
		{
			set{ _nonpregnantcount=value;}
			get{return _nonpregnantcount;}
		}
		/// <summary>
        /// 流产次数
		/// </summary>
		public int? AbortionCount
		{
			set{ _abortioncount=value;}
			get{return _abortioncount;}
		}
		/// <summary>
        /// 已经生产胎数
		/// </summary>
		public int? PropagateCount
		{
			set{ _propagatecount=value;}
			get{return _propagatecount;}
		}
		/// <summary>
        /// 繁殖状态编号
		/// </summary>
		public Guid PropagateStateID
		{
			set{ _propagatestateid=value;}
			get{return _propagatestateid;}
		}
		/// <summary>
		/// 备注
		/// </summary>
		public string Comment
		{
			set{ _comment=value;}
			get{return _comment;}
		}
		#endregion Model

	}

    [Serializable]
    public partial class SowShowModel
    {
        public int RowNumber { get; set; }
        public Guid SowID { get; set; }
        public string BitID { get; set; }
   
        /// <summary>
        /// 猪舍名
        /// </summary>
        public string CustomizeID { get; set; }
        /// <summary>
        /// 猪品种
        /// </summary>
        public string TypeName { get; set; }

        /// <summary>
        ///母猪繁殖期顺序，1-后备期，2-发情期，3-配种期，4-怀孕期，5-分娩期，6-哺乳期，7-空怀期
        /// </summary>
        public int PropagateStateOrder { get; set; }
        /// <summary>
        /// 母猪繁殖状态名称
        /// </summary>
        public string PropagateStateName { get; set; }
        /// <summary>
        /// 胎次
        /// </summary>
        public int PropagateCount { get; set; }
        /// <summary>
        /// 平均产子数
        /// </summary>
        public double AvgPropagetCount { get; set; }

        /// <summary>
        /// 是否警报需要淘汰，默认0--正常，1--警报淘汰
        /// </summary>
        public bool IsWarn { get; set; }
        
    }

    /// <summary>
    /// 该类为配种母猪页面中查看母猪基本信息类。
    /// 包括猪舍编号，饲养员姓名，母猪类型
    /// </summary>
    [Serializable]
    public partial class SowInfoForHybrizationRecord {
        public string CustomizeID { get; set; }
        public string FeederName { get; set; }
        public string TypeName { get; set; }
    }
}

